import { BasePlatform } from "../base/BasePlatform";
export class EditorPlatform implements BasePlatform {
    hasVerify(): boolean {
        return true;
    }
    canShare(): boolean {
        return false;
    }
    infostr: string[] = [];
    youmengTrack(key?: any, abName?: any, groupValue?: any, id?: string) {
        let str = "事件id：" + key + "\n"
        str += "事件值：" + groupValue + "\n"
        str += "AB用户：" + abName + "\n"
        str += "说明：" + id + "\n"
        // setTimeout(() => {
        //     if (CC_BUILD) {
        //         // window.alert(str)
        //     } else {
        //         // console.log(str)
        //     }
        // }, 250);
    }


    initSdk(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    login?(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    pay?(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    share(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    showBanner(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    hideBanner(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    showInsertAd(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    showVideoAd(args?: any, callback?: Function, error?: Function, stub?: string) {
        if (callback) {
            callback();
        }
    }
    otherFun(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    shark(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    recordVideo?(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    shareVideo?(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    stopRecorderManager?(args?: any, callback?: Function) {
        if (callback) {
            callback();
        }
    }
    setLanguage?(args?: any, callback?: Function): string {
        if (callback) {
            callback();
        }
        return "zh"
    }

    addCollect(callback?: Function) {
        if (callback) {
            callback(true);
        }
    }

    addDesktop(callback?: Function) {
        if (callback) {
            callback(true);
        }
    }

}